package com.yc;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

@SpringBootApplication
@Slf4j
@EnableTransactionManagement
//com.yc.**.mapper.*,com.yc.system.security.core.dao.*
//@MapperScan("com.yc.system.mapper")
@MapperScan(value = {"com.yc.**.mapper,com.yc.system.security.core.dao"})
//@MapperScan(basePackages = {"com.yc.system"}) //扫描DAO
public class SssmpApplication {

    public static void main(String[] args) {
        log.info("project start");
        SpringApplication.run(SssmpApplication.class, args);
    }

}
